package com.studykun.client.model.js;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;

public class JsDeck extends JavaScriptObject {
  protected JsDeck() {
  }
  
  public final native String name() /*-{
    return this.name;
  }-*/;
  
  public final native JsArray<JsCard> cards() /*-{
    return this.cards;
  }-*/;
  
  public final native boolean enabled() /*-{
    if (!("enabled" in this)) {
      this.enabled = true;
    }
    return this.enabled;
  }-*/;
  
  public final native boolean enabled(
      final boolean value) /*-{
    this.enabled = value;
    return value;
  }-*/;
}
